package Vista;
import com.cloudgarden.layout.AnchorConstraint;
import com.cloudgarden.layout.AnchorLayout;
import java.awt.CardLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.SwingUtilities;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ViewAltaLineaOLD extends javax.swing.JFrame {
	private static final long serialVersionUID = 1L;
	private JLabel jLNombrePlan;
	private JTextField jTNumeroLinea;
	private JTextField jTDniUsuario;
	private JLabel jLNumeoPlan;
	private JComboBox jComboBPlan;
	private JLabel jLabel2;
	private JTextField jTNombreAdicional;
	private JLabel lblTipoLinea;
	private JButton jBCancelar;
	private JButton jBguardar;
	private JLabel jLabel1;
	public static ViewAltaLineaOLD instancia;


	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				ViewAltaLineaOLD inst = new ViewAltaLineaOLD();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	private ViewAltaLineaOLD() {
		super();
		initGUI();
	}
	
	public static ViewAltaLineaOLD getInstancia() 
	{
		if (instancia== null)
			instancia = new ViewAltaLineaOLD();
		return instancia;
	}
		
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setEnabled(false);
			this.setAlwaysOnTop(true);
			this.setResizable(false);
			this.setName("frmAltaLinea");
			this.setTitle("Alta de Linea");
			{
				jLNombrePlan = new JLabel();
				getContentPane().add(jLNombrePlan);
				jLNombrePlan.setText("Numero Linea:");
				jLNombrePlan.setBounds(168, 12, 97, 14);
				jLNombrePlan.setName("lblNumeroLinea");
			}
			{
				jTNumeroLinea = new JTextField();
				getContentPane().add(jTNumeroLinea);
				jTNumeroLinea.setBounds(168, 25, 202, 21);
				jTNumeroLinea.setName("txtNumeroLinea");
			}
			{
				jLNumeoPlan = new JLabel();
				getContentPane().add(jLNumeoPlan);
				jLNumeoPlan.setText("DNI Usuario:");
				jLNumeoPlan.setBounds(12, 12, 102, 14);
				jLNumeoPlan.setName("lblDniUsuario");
			}
			{
				jTDniUsuario = new JTextField();
				getContentPane().add(jTDniUsuario);
				jTDniUsuario.setBounds(12, 25, 150, 21);
				jTDniUsuario.setAutoscrolls(false);
				jTDniUsuario.setName("txtDniUsuario");
			}
			{
				ComboBoxModel jComboBTipoPlanModel = 
					new DefaultComboBoxModel(
							new String[] {"" , "BASE", "PREPAGO", "ADICIONAL" });
				jComboBPlan = new JComboBox();
				getContentPane().add(jComboBPlan);
				jComboBPlan.setModel(jComboBTipoPlanModel);
				jComboBPlan.setBounds(12, 72, 358, 21);
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setText("Elija un Plan:");
				jLabel1.setBounds(12, 58, 97, 14);
				jLabel1.setName("lblPlan:");
			}
			{
				jBguardar = new JButton();
				getContentPane().add(jBguardar);
				jBguardar.setText("GUARDAR");
				jBguardar.setBounds(167, 240, 102, 21);
			}
			{
				jBCancelar = new JButton();
				getContentPane().add(jBCancelar);
				jBCancelar.setText("CANCELAR");
				jBCancelar.setBounds(268, 240, 102, 21);
			}
			{
				lblTipoLinea = new JLabel();
				getContentPane().add(lblTipoLinea);
				getContentPane().add(getJLabel2());
				getContentPane().add(getJTextField1());
				lblTipoLinea.setText("Seleccione el tipo de Linea:");
				lblTipoLinea.setBounds(12, 107, 156, 14);
				lblTipoLinea.setVerifyInputWhenFocusTarget(false);
			}
			pack();
			this.setSize(421, 311);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private JLabel getJLabel2() {
		if(jLabel2 == null) {
			jLabel2 = new JLabel();
			jLabel2.setText("Nombre del Adicional");
			jLabel2.setName("jLabel2");
			jLabel2.setBounds(12, 174, 142, 14);
		}
		return jLabel2;
	}
	
	private JTextField getJTextField1() {
		if(jTNombreAdicional == null) {
			jTNombreAdicional = new JTextField();
			jTNombreAdicional.setAutoscrolls(false);
			jTNombreAdicional.setName("jTNombreAdicional");
			jTNombreAdicional.setBounds(12, 200, 358, 21);
		}
		return jTNombreAdicional;
	}

}
